package com.smr.micservice.common.pojo;

import lombok.Data;

import java.util.Date;

@Data
public class ErrorMessage {
    /**
     * 状态码(遵循http基础协议)
     */
    private Integer code;

    /**
     * 消息
     */
    private String message;

    /**
     * 时间戳
     */
    private Date timestamp = new Date();

    public ErrorMessage(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
